home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectInput / DIConfig / viewselwnd.h < prev   
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.2 KB  |  47 lines

  1. //-----------------------------------------------------------------------------
  2. // File: viewselwnd.h
  3. //
  4. // Desc: Implements CViewSelWnd class (derived from  CFlexWnd).  CViewSelWnd
  5. //       is used by the page object when a device has more than one view.
  6. //       CViewSelWnd displays one thumbnail for each view.  The user can then
  7. //       select which view he/she wants to see with the mouse.
  8. //
  9. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  10. //-----------------------------------------------------------------------------
  11.  
  12. #ifdef FORWARD_DECLS
  13.  
  14.  
  15.     class CViewSelWnd;
  16.  
  17.  
  18. #else // FORWARD_DECLS
  19.  
  20. #ifndef __VIEWSELWND_H__
  21. #define __VIEWSELWND_H__
  22.  
  23.  
  24. class CViewSelWnd : public CFlexWnd
  25. {
  26. public:
  27.     CViewSelWnd();
  28.     ~CViewSelWnd();
  29.  
  30.     BOOL Go(HWND hParent, int left, int bottom, CDeviceUI *pUI);
  31.  
  32. protected:
  33.     virtual void OnPaint(HDC hDC);
  34.     virtual void OnMouseOver(POINT point, WPARAM fwKeys);
  35.     virtual void OnClick(POINT point, WPARAM fwKeys, BOOL bLeft);
  36.     virtual LRESULT WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
  37.  
  38. private:
  39.     CDeviceUI *m_pUI;
  40.     int m_nOver;
  41. };
  42.  
  43.  
  44. #endif //__VIEWSELWND_H__
  45.  
  46. #endif // FORWARD_DECLS
  47.